wayland: Fix initial fullscreen monitor support
authorGiovanni Campagna <gcampagn@cs.stanford.edu>
Sun, 26 Jul 2015 00:22:41 +0000 (17:22 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 26 Jul 2015 05:55:56 +0000 (01:55 -0400)
commit83b7a0f0e5fd1eb49dc7e7ce8811b69434897aad
tree02837914dccafc0900aa10e76c4056a98813b535
parentb2b4a3bb0a6ffcc8d1f46a4ba7bcee2f87cc3f08
wayland: Fix initial fullscreen monitor support

-1 means that we have no specific preference for an initial
fullscreen monitor, and -1 is less than the number of monitors,
so we would end up accessing invalid memory. Prevent that.

https://bugzilla.gnome.org/show_bug.cgi?id=752875
gdk/wayland/gdkwindow-wayland.c